package edu.xcdq;

import java.util.Scanner;

public class AddUser {
    public static void main(String[] args) {
        System.out.println("迷你游戏平台>添加用户信息");
        System.out.println("请输入要录入的用户的数量");
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        for (int i = 0 ; i < num ; i ++ ){
            System.out.println("请输入用户编号(<4位整数>):");
            int userId = scanner.nextInt();
            System.out.println("请输入用户年龄：");
            int  age = scanner.nextInt();
            if (age<10){
                System.out.println("你的年龄不适合玩游戏");
                System.out.println("录入信息失败");
                continue;
            }
            System.out.println("请输入用户积分：");
            int jiFen = scanner.nextInt();
            System.out.println("用户编号："+userId+"\t年龄："+age+"\t积分："+jiFen);
        }
    }
}
